package com.yanqu.road.dataHelper.action;

import com.yanqu.road.dataHelper.action.excel.Rebate;
import com.yanqu.road.dataHelper.gameServer.GameServer;
import com.yanqu.road.dataHelper.manager.ActivityMgr;
import com.yanqu.road.dataHelper.manager.BaseMgr;
import com.yanqu.road.dataHelper.manager.ServerMgr;
import com.yanqu.road.dataHelper.utils.ExcelData;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import static com.yanqu.road.dataHelper.gameServer.Base.getLogger;

public class RebateInExcel extends actionBase{

    public void go(List<Long> serverList){
        getLogger().error("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
        String dirPath = System.getProperty("user.dir") + File.separator;
        ExcelData sheet0 = new ExcelData(dirPath + "inExcel" + File.separator + "RebateExcel_20210501152922.xlsx", "sheet0");
        Map<String, Map<String, String>> excelMap = sheet0.getExcelData();
        BaseMgr.getMgr(ServerMgr.class).insetRebate(new ArrayList<>(excelMap.values()));
    }
}
